#import "NSWindow+SMRAdditions.h"


@implementation NSWindow (SMRAdditions)

-(NSRect)smrConvertRectScreenToBase:(NSRect)screenRect {
	NSPoint baseOrigin = [self convertScreenToBase:screenRect.origin];
	NSRect baseRect = screenRect;
	baseRect.origin = baseOrigin;
	return baseRect;
}

-(NSRect)smrConvertRectBaseToScreen:(NSRect)baseRect {
	NSPoint screenOrigin = [self convertBaseToScreen:baseRect.origin];
	NSRect screenRect = baseRect;
	screenRect.origin = screenOrigin;
	return screenRect;
}

@end
